﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace MvcPostText.Models
{
    public class Entry
    {
        public int ID { get; set; }

        public string Text { get; set; }

        public DateTime PostTime { get; set; }

        public string WrittenBy { get; set; }
    }

    public class EntryDBContext : DbContext
    {
        public DbSet<Entry> Entries { get; set; }
    }

    public class EntryListAndAdd
    {
        public List<Entry> Entries { get; set; }
        public Entry NewEntry { get; set; }
    }
}